package com.example.myapplication;

import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import com.stephentuso.welcome.BasicPage;
import com.stephentuso.welcome.TitlePage;
import com.stephentuso.welcome.WelcomeActivity;
import com.stephentuso.welcome.WelcomeConfiguration;
import com.stephentuso.welcome.WelcomeFinisher;
import com.stephentuso.welcome.WelcomeHelper;
import com.stephentuso.welcome.WelcomeUtils;

public class welcomeActivity extends WelcomeActivity{

    private static final String TAG = "welcomeActivity";
    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);


    }
    @Override
    protected WelcomeConfiguration configuration() {

        return new WelcomeConfiguration.Builder(this)

                .defaultBackgroundColor(R.color.orange_background)
                .page(new TitlePage(R.mipmap.ucas,
                        "UCAS")
                        .background(R.color.orange_background)
                )
                .page(new BasicPage(R.mipmap.ucas_campus,
                        "校徽",
                        "中国科学院大学")
                        .background(R.color.red_background)
                )
                .page(new BasicPage(R.drawable.ic_launcher_background,
                        "Lorem ipsum",
                        "dolor sit amet.")
                        .background(R.color.purple_200)
                )
                .page(new BasicPage(R.drawable.ic_launcher_background,
                        "Lorem ipsum",
                        "dolor sit amet.")
                        .background(R.color.blue_background)
                )

                .swipeToDismiss(true)

                .build();

    }



}